-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10 notify signing error #11
Conversation
Deploying with
|
Latest commit: |
688934f
|
Status: | ✅ Deploy successful! |
Preview URL: | https://676a30b4.dapp-econ-gov.pages.dev |
Branch Preview URL: | https://10-notify-signing-error.dapp-econ-gov.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question/suggestion but better than nothing for now so LGTM
@@ -69,7 +69,7 @@ const App = (_props: Props) => { | |||
setMetricsIndex, | |||
setGovernedParamsIndex, | |||
setInstanceIds, | |||
}); | |||
}).catch((err: Error) => console.error('got watchContract err', err)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth alerting here too? (Maybe if/when we get time we can add a toast instead of alert)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I figured if this part fails there's not anything they can do. for the signing error they can get more funds.
@@ -8,6 +8,11 @@ import { IST_ICON } from 'assets/assets'; | |||
import type { BrandInfo } from 'store/app'; | |||
import { wellKnownBrands } from 'config'; | |||
|
|||
export const notifyError = err => { | |||
console.log(err); | |||
window.alert(err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not alert(err.message)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. I was worried about [Object object]
or some such. thanks for the detail.
fixes: #10